Avoid relying on assert(3) since a RELEASE build will -DNDEBUG

  Fixes #26