Hide more stuff behind ifdefs. Start of canceltimeout.