fix build error, add licence