Make sample demos optional.

Sample demos should be optional at build time, to avoid the extra required dependencies if we just want the library.