Fixed a bug with av_free missing by adding a proper include.

Problem exists when compiling from source on Ubuntu 14.04