CXXFLAGS/LDFLAGS loads custom flags before external libs