The 'O_NONBLOCK' flag has different numerical values in lwip and in the libc, which prevented the correct setting of nonblocking socket mode. Fixes #1699