fix compilation errors on arm-linux-androideabi toolchain