Implemented stackLimit() for Mac OS X