Fix a bunch of windows errors

Hopefully all of them