Cleaner dependency library detection.
Update for upstream libuv.