Fixing compilation errors on Android.