First Windows build, fixed syntax and link errors