Taz4 / RAMBo aux fan wiring?

Sorry to pull up an old topic, but I need help with a firmware configuration error I’m getting when trying this upgrade. I have a Taz 3 which I upgraded with a hexagon hotend. I’m trying to have a part cooling fan (which I already have working) and a 12 or 24V heat sink fan that I can control or that automatically comes on when hot.

I already ran the wiring as described above and am working on the firmware. I made the edit to configuration_adv as described above, but I get a “‘FAN1_PIN’ was not declared in this scope” error in the temperature.cpp page. I never edited this page and I copied/pasted the code exactly as it appears above. I am using Arduino version 1.0.5-r2. Any help would be appreciated. I can include the exact code if that would be helpful.