fix license files and some missing license headers