Merge pull request #34 from mar-kolya/master

Fix flash-wmode.js
fix deadlock on error in glx_ctx_ref_glc_hash_table
explicitly disable blending for video surfaces
replace qsort_r with g_qsort_with_data
rename pixfmt_compat.h to compat.h
stop calling pthread_yield
move OS-specific thread id related functions to compact.h
calm watermark colors
update year in file headers
fix missing avutil version macros
include libavutil/avutil.h rather than libavutil/version.h

for compatibily with older ffmpeg versions which didn't have version.h
use GAsyncQueue to pass tasks to presentation thread
make locking in do_presentation_queue_display coarser
drop presentation thread startuo barrier
use single presentation thread for all presentation queue objects
acquire GL context in vdpOutputSurfaceQueryCapabilities
protect some more X calls with GLX context mutex