Fixed build system for Win