Merge pull request #114 from andrew-wja/master

Add a build flag to control whether or not the example programs get built