changes to allow for compilation on Windows (with Windows build targets set up)