Added license header and check of licenses set to package phase.