Added socket redirector for OSX