add audio_output.c to build
Functions to create and join with/free threads