fixed POSIX only import in Windows