patch to Gull.cpp for Mac OS X support