Add Cocoa, OpenGL and CoreVideo checks
DEFINES: COCOA, GL, COREVIDEO
fix libavfilter conditionals
fix compilation with cocoa OpenGL and corevideo