fixed some compile errors on android