Updated socketpair implementation for the untouched one so it works
properly in Windows.