fix order for LDFLAGS and CPPFLAGS