These are required by latest mingw-w64 stl and we are mixing this with our crt headers. Define _CRT_NO_POSIX_ERROR_CODES in all modules that define their own constants.