added libdl for linux