Fix movit build by exporting CXXFLAGS before configure step.