smaller fixes
detection for windows