Fixed LDAP related installation issues, closes #636