Fix the android build by adding pthread_cancel() and friends to libcmyth.