berkelium-cpp: added global error handler bk_error