License check; fixes #344.