Backporting of cling executor creation from android.