Fixed minor errors for posix