Define AGL_API (added include/agl/api.h).
Added agl_error_t (and agl::Error_).