Mac OS X compilation fixed