Include the glapi*.h directly instead. glapi/dispatch.h became a Mesa core header since 22884db174.
22884db174