Nonblocking socket initialisation - solves issue #78