Added -lsocket for QNX.