Add options for building samples and unit tests.