fixed make display compilation problem for Mac OS X