Fixed licence
Fixed compile warnings