Change posix module to optional dependency