Changed the function and program works fine. For those who want to patch their Arduino .007 apps the function referenced above that you need to change is in arduino-007/lib/targets/arduino/wiring.c
Or at least that was my experience on a Mac.
Paul Badger