Fix omero.client classpath error (see #10487) (rebased onto develop)



This is the same as gh-805 but rebased onto develop.

----

This PR fixes http://trac.openmicroscopy.org.uk/ome/ticket/10487. To test, download the OMERO.matlab zip file and try using it in Matlab. @sbesson already reported successful preliminary tests.