tv: add missing header for clock_gettime

Not sure how this symbol becomes visible in glibc (probably accidental
or mandatory recursive inclusion via the other standard or Linux-
specific headers), but normally this include file is needed to get the
symbol.
build: fix generation of zsh completion

The Perl script must be run *after* the mpv executable is generated. Also use
an absolute path to it.