Fixed some compiler problems in Windows

Caused by linux integration.