Those need to stay - theoretically there might be platforms using the Makefiles for building and which are not POSIX compliant. Those would try to compile PosixDirectory.cpp when this ifdef is removed which might break compile then ...