Import from libucl

Adapt to new API
Remove ustring.h from external