Add missing ifdefs.