add homebrew patch

This patch is necessary to build in a Homebrew environment using
Homebrew's openssl and pcre packages. Ideally, use a proper formula.
Apply homebrew patch to use dependencies through homebrew
Fixed returned number of processors on Mac OSX. Tested on Mac OSX (and Ubuntu).
Source: http://stackoverflow.com/questions/150355/programmatically-find-the-number-of-cores-on-a-machine