Add validns and dependencies. Fix ldconfig for all platforms.