MinGW tolerance fixes