[#2014] Add support for creating and checking links on Windows.
Fix after review.
Merge master.