add some #ifdefs to gt rid of some unused variable warnings (and their RAM use)