adding -ldl flag in Makefile.am