Fix support for libigot and older versions of CraftBukkit