Fixing OS X compilation warnings