Link libdl and libboost_filesystem.