remove posix dependency