Fixed compilation on some systems

I still don't know why on some distributions/compilers it's okay to have the CFLAGS/LFLAGS on the front of the arguments. Whatever, compiles fine now.