mingw-w64: fix _set_invalid_parameter_handler

Check the __MSVCRT_VERSION__, as mingw-w64 does always define
_WRITE_ABORT_MSG.