Revise library function signature and fix library definitions
to match the changes. These no longer return an error value,
but are expected to call Runtime.Fatal and friends to trigger
panics.

The runtime catches panics and turns them into relevant error
messages with source and execution context.