[travis] For gcc, build only osimJavaJNI first.