Updated ffmpeg source from 2.1.x to 2.2.1
Define _GNU_SOURCE in enough places to fix the build
Patched pre.js for stdin/out/err and closure compilation
Added custom build script
Tweak
Tweaks and .gitignore