Fix linking error with Ncat by adding -ldl