add error checking to the build

requires https://github.com/OpenXT/openxt/pull/26 to have been merged, which can safely be done before this is merged.