Add license and make it buildable