Add license information to library code

Signed-off-by: Michael Buesch <m@bues.ch>