fixed platform detection on windows