add some missing ifdefs