HRCPP-105 posix Socket.cpp cannot be compiled

https://issues.jboss.org/browse/HRCPP-105