clib: fix exit codes with upstream patch.