cmake: Drop obsolete EXPERIMENTAL and LEGACY flags

Also a small refactoring of CMakeLists.txt for iops.
(cherry picked from commit 15ebf4166e0e5d13079cf4125a5f8616fc41c9a5)

Conflicts:
	packaging/gentoo/media-gfx/darktable/darktable-9999.ebuild