waf: add Cocoa check
waf: add XXX for missing dependency resolver feature
waf: add OpenGL (only with gl_cocoa) checks

gl_win32, gl_x11 and gl_wayland must be implemented as separate checks to
avoid all the crazy ifdeffery in the configure check.
waf: add corevideo check