Windows single-file impl