Fix building for POSIX