fixed compile-time errors on Android