Changes to make rippled compile on OSX