fixed osx warnings