Fixed -ldl linking error