pkg/syscall: Fix darwin_amd64 syscalls take 2. Fixes #51.

This change includes more links to reference material and now makes
use of the carry flag to detect errors.