Add license and missing compability header