support older versions of libav (for Ubuntu 12.10)