I/O helpers.
Nasty dependency body to build libhls.la.