use correct define for OSX in util.c