Fixed dependency check for Mac OS X 10.8