added licensing info and moved cstring include to Common header