Fix compilation with libav 0.8.12