cpp: replace usage of removed MetadataTools methods

This fixes compile errors introduced by 6b31a4ff9ac4bfc1ccf356804add10dc637366f5
Merge pull request #525 from melissalinkert/cpp-compile-fix

cpp: replace usage of removed MetadataTools methods
travis: Build cppwrap

- Add tools/test-build script
- Run tools/test-build
- Install needed build dependencies
Merge pull request #527 from rleigh-dundee/travis-tests

Travis tests test ant, maven and cppwrap