Use isWindows to determine correct system linkage.
Merge pull request #2197 from ibuclaw/linkage

Use isWindows to determine correct system linkage.