libdl dependency only applies when building the whole ERT application