initial commit
Added license information
fix build errors on ubuntu