Fixed compilation for posix