small modifications to compile in android