fixes for MSW (windows)