cpp: add basic support for enumeration infos in file info factory
patches: remove file info factory patch