Fix build errors on Windows

Fix build errors on Windows