Fix the build on Mac OS X
Merge pull request #444 from adamretter/java-api-fix

Fix the Java API build on Mac OS X