Modifications necessary to get a good clean build on MacOS X with Homebrew
NOTE: There is still a crash caused by CheckProofOfTxSearch that I havent tracked sown yet.