Add programmatic specification of the license. Fixes #26