Added an optional origin parameter to posix::throw_error().
Annotated all posix::throw_error() call sites with origin info.