Attempt to fix build on older libavcodec versions
Reduce stheader.h includes, move stream types to mp_common.h