Use portable way of linking with libdl
Merge pull request #82 from AMDmi3/libdl

Use portable way of linking with libdl