add -ldl to Makefile