fixed some windows warnings
another hack attempt to fix unit tests on windows