Move removal of some warnings to the OD_OPT_FLAGS variable on MinGW