cmake: fix bug using mklink when cross compiling
An alternative is to use 'cmake -E create_symlink' also on Windows, but
this would require increasing the minimum cmake version to 3.13.
See https://gitlab.kitware.com/cmake/cmake/merge_requests/2144 for more
information.