fixed: ERT depends on libdl

this issue was triggered with static libs for ERT
Merge pull request #375 from akva2/fix_ert

this makes the build system more bullet proof. thanks