Platform licensing

Added the platform wide licensing

Also fixes #1968