mdiag: Added Apache 2.0 license