compile on mac and windows

work from Monetas (opentxs-server) and Cameron