use shared libuv library if not using the bundled version

If a system libuv is used rather than the bundled one, use shared linkage to
allow for upgrades.

Closes #171.