Fix compiler errors
Add license files