Reduce withUnsafePointer() / withUnsafeMutablePointer() where possible. Only sockaddr-ptr casting still needs it.