Fixes for windows.