fixing OSX build

see https://github.com/nvmd/bitcoin/commit/e5a2c9794c34261af5ddcb8751913186d9802791