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