Fixed compiling under windows