Added a flag to toggle the build of the examples (see issue #23)