Fix compilation errors on Android.