windows fixes

well it compiles... that's about all I know so far