Fix compilation

without those modification you can't build inside android