fix warnings on osx