Resolve compilation and link errors for Windows.