fix Android compile errors