fixed osx display compilation issue