Corrections to the build system for el5

Change-Id: I401b4b0ff68abaf492ab31379c79a18c588cfa00
Signed-off-by: Vinzenz Feenstra <vfeenstr@redhat.com>