fix cxxflags append in ogr input build