Fix compile errors on Android.