I tried to replace it with an unsigned long variable, but no matter where I put the variable (wiring.c, wiring_private.h, arduino.h) I get errors the variable has multiple defines.
If you want to use a global variable, the variable has to be declared in the sketch. The library (or libraries) then need to be told that the value is extern to them.