fix some compiler warnings
work-around undocumented libav API change