Error Building Kraken plugin

I get the following error when I run ant jar in the build directory.

[javac] 1. ERROR in /root/openfire/src/java/org/jivesoftware/admin/LdapGroupTester.java (at line 33)

[javac] import javax.naming.ldap.SortControl;

[javac] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[javac] The import javax.naming.ldap.SortControl cannot be resolved

Where do I get SortControl?

I am running CentOS 6 and have installed java via rpm.

As a side question, does anyone know how close the final version is so that it will just be included in the list of available plugins for 3.7.0?

Thanks!