Fixes for WIN32.