fix iOS build when using recent versions of OpenJDK 7

This is based on recent feedback on the Avian group.  I've tested it
using both OpenJDK 7u40 and 7u60.