Adjust exceptions to ObjFW API change.