added -ldl to Jamroot.jam and modified top level makefile