compile on mac and windows

work from monetas (opentxs-server) and Cameron