That error is from when I tried to compile it from Mac OSX 10.11 and 10.12 directly. For cross-compiling, I am trying from Ubuntu 16.04, but I know for sure that the OSX CURL libraries are configured incorrectly and will work on cross-compiling the next few days.
Also, on my Ubuntu Machine I find that with optiminer's hodlminer the hash rate is much lower than what I get from the wallet directly through optimineaes enabled. Normally I get 80 H/s, but with optiminer I get 55 H/s on one thread and 40 H/s and 30 H/s on two threads. Does anyone have any tips for improving optiminer's hash rate? Also, is it better to run the miner on multiple threads if the sum hash rate is higher than the single thread hash rate (say 30 and 40 H/s on two threads vs 55 H/s on one thread)?
Also yes, I know 80 h/s is low but it's just a casual laptop that I mine on in the night when my house is cold enough to cool the laptop (partially) and the global hashrate dips. I've actually found a block in on this machine in just two nights!
Too fully take advantage of optiminer's improvements you need a modern cpu that supports aes and avx2. For me on a E3-1240 i managed to double the hashrate with it. ( using 4 cores , on ubuntu 14.04 )
In your case using 2 cores yields more hash, the higher the combined hashrate the better. ( i assume you have an old dual core cpu )