Modified for mac BountyCoind build