Fix building for Windows