Properly compile openssl for OS X rather than using brew version.

Compilation flags are taken from brew formula