Oops. I should respect the simulator #ifdefs more.