modifications to build for Windows