Mods to help bitcoin-api buiold on mac.