compilation fix: add missing includes

I'm compiling an old project using libav 0.6 on a recent ubuntu. I got some minor include errors when building libav 0.6.

gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2