[MRG] Fix crash when specifing march in cxxflags.

This should also make the warning printed only once.