core: made z_lib_include use the dispatcher