Compile fixes for windows.