Fixed build for Windows