Fix minor warnings on MAC OS X