Added agl::error_handler and agl::set_error_handler.