lavf: move TLS-related ifdeffery to library specific files