msvc, mingw32 portability fixed.