Fix problems under android.