Mods to get bitcoin-api building on mac.