Compilation fixes for windows.