patcher: fixed var name clash bug with #ifdef's

Now ifdefs work