Fix compilation on Mac OS X, patch by Marc Hoffman, mmh pleasantst com.