PHP: Fix for broken build when --with-ldap is used.