build: link against nsl on solaris.