Add mechanism to build a smarter distrib (including examples and tests)