OS X compilation fixed