[Bug 1115200] Use new erlang macros to build with $RPM_OPT/LD_FLAGS etc