Fixed build for windows