Use RPM_LD_FLAGS when linking the library and examples. Add ghostscript BR due to TeXLive 2012 changes.