Added a workaround for the missing pthread_cancel on Android.