Compilation patches

Fixes ao_dsound compilation with libav (at least).
Also makes configure check for glext.h as well, since you can't compile vo_opengl without it anyway.