fix compiling erros on Android