adding ifdefs for Android