Teach travis to run the built example projects.
Register an error handler in the simple example so that any failure
will give a non-zero exit code. This is to aid testing under Travis.