fixed compiling under windows