Add support for C++11
Change TcpSend::getPortNum() error from return-code to thrown exception