Make link platform-specific

It didn't work on windows in current state