fixes for socket. unit test framework is now c++2003.