Build improvements

Some build improvements:

- License the build files under 3-clause BSD to ease reuse
- Make license failure stop the build earlier