Fixed C++ example syntax error

Fixed `./build all` error:

    Building C++ examples...
    hwclient.cpp
    hwserver.cpp
    hwserver.cpp: In function ‘int main()’:
    hwserver.cpp:31:1: error: ‘else’ without a previous ‘if’
    hwserver.cpp:32:10: error: ‘Sleep’ was not declared in this scope