warnings fix for osx