fix build under Windows

Module 'System.Posix.Directory' is contained in package 'unix' which is not supported under Windows. And its usage is protected by ifdef already so I think that it is a safe modification.