restored sock_fd_write back to original definition, so that examples/memwrite works again