Mswin64 support.
Merge pull request #2981 from unak/mswin64-support

Mswin64 support.