fix building and installing on Windows