Use foreign automake flavour

Get rid of 0-sized files mandated by GNU flavour
Stop overwriting custom INSTALL file
Fix build with recent libavcodec
Merge pull request #1 from funman/master

Misc build fixes