fixed OS X compilation warnings