Add missing license block
Add missing includes to make it compile