MinGW fixes, mainly workaround for broken strtod.