Fix compile errors on android.