fix a couple of warnings on osx