Move ULog struct allocation into library