Move removal of some warnings to the OD_OPT_FLAGS variable on MinGW

As discussed on https://github.com/OpenDungeons/OpenDungeons/commit/8299752bf611159a5f9d7dedc974d470349786b6#commitcomment-7948989