Mac OS X compilation fix