Updated Makefile to link against libdl.so