Add apache license, fixes #278