Fix compiling errors on Android