[occjava] Fix warning: taking address of temporary

This warning was caused by copy/paste error when defining three methods.
The -fpermissive flag is dropped from CMakeLists.txt.