Change ordering of LDFLAGS for GCC