Build examples conditionally, build only the library.

Please note the default ON values for building the examples has been changed to OFF. You may wish to turn these back on for the distributed library.