Update hwserver.cpp

Added Windows defines