Merge pull request #1481 from jbertram/master

fix sub-module builds so that the license check works
Fix license check for examples