Aborting the process is sometimes a bit harsh for a failed assertion. This adds a non-fatal assert() macro called "check()" and uses it in some places where we might be able to survive the error. Signed-off-by: Uli Schlachter <psychon@znc.in>