centralize android ifdefs