Added exit(1) after assert(true) statements.

With NDEBUG=1 the asserts disappear causing a compile error. Flow
control could lead to no return statement in these cases.