Fix compilation for non-datakind flags