various windows-side compile fixes