Some small fixes to cmake config files

Workaround CMake bug #12065 on windows
 - CMake does not handle calculating relative directories if they contain
   './' path elements.
Don't copy IMPORTED_SONAME since that's linux only and not essential