better error reporting and checking
Merge branch 'titan' of github.com:BitShares/bitshares_toolkit into titan
fix for clang build