MPEG TS reader: honor in/out time from MPLS

Fixes #985.
fix compilation on Solaris: ldexp requires the std:: prefix for int64_t

Fixes #977.
fix compilation on Solaris: ioctl requires more headers
mpls_dump: a new tool for dumping MPLS file structures
AVI reader: output key frames with video index dump
AVI reader: skip audio chunks bigger than 10 MB