Some fixes for compiling on Cygwin: x264, pthreads, taglib and dirac.