Ported ffmpeg API fixes from FreeRDP

Many depreciated functions have been removed starting from ffmpeg versions 0.9 onwards which stop neutrino from building, ported fixes from FreeRDP [bug 285](https://github.com/FreeRDP/FreeRDP/issues/285)