Fixed compiling issues for windows.