[CMake] Fixed win32 regression  build since introduction of  Rez tool detection on osx.