Fix examples script and Eclipse classpath to work with JNA coming from gradle

Not sure how brittle the classpath is going to be, but the hash in the jar path
seems stable when rebuilding.
Rename onMount to beforeMount, and change its semantics to mean just that.