add el5 conditionals
change config from here doc to separate source file
upstream 1.5.7