extract die_errno
small fixes
add usage message