Update licencing
Fix debug compilation