When linking an application with the static Open Client libraries, add this parameter to your link line:
-lnsl -lsocket