opencv: make Java bindings optional

Prevents forcing the :ant dependency on users without Java installed
and disables Java bindings by default.