glapi: mv table functions to glapi_getproc.c and add local header