Add support for FLAC encoding.
Based on the source code of the Asunder program.
FLAC encoding