Check for -lm for sqrt().
Remove arc4random() from crypt.c.
linux: fix the libuv build (upstream bug)