fixed posix build