windows build fixes, still crashes for now