add -ldl to shared target