sample server: support build on win32
Merge pull request #1314 from nfedera/fix-2013-06-24-01

sample server: support build on win32