fix build on Windows - introduce platform specific _notwin and _windows sources