RS lib: make it work with older cmake versions.