Add some missing ifdefs