Fixed a bug with av_free missing by adding a proper include on Ubuntu 14.04.