Added guards for Android builds.