Update hwserver.cpp

Added Windows defines
Merge pull request #310 from damian123/patch-1

Update hwserver.cpp