fix cxxflags setting for ogr plugin