Fix libldap linking to /var/cfengine/lib/libcrypto.so instead of /usr/lib/.

(cherry picked from commit 59a3cd30f70a02fd13aaedcb6c0ca57f788e2d48)
Remove shady stuff.

(cherry picked from commit 82a46bff88e7d655f699aa8ccd04ad3d58b50990)