properly inherit LDFLAGS/CXXFLAGS set in env