timehelper.h: Add cast to silence conversion warning.
socket.cxx: Work around for std::array<> initialization with MSVC issue.