mach-msm: Generalize ifdefs