fix posix build