fix -ldl linking for some linux distrib