avutil: Add av_timegm as a public function