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.
Merge pull request #309 from dicej/ios-openjdk7

fix iOS build when using recent versions of OpenJDK 7