Update to libav used in Ubuntu 13.10

I play with your code for some fun project. Had to make those changes to get it built under Ubuntu 13.10.

Feel free to use or reject.