Use $LIBS, not $UV_LIBS.