adding/fixing version suffix for desktop java library on all OSes
updating samples to load JNI lib with correct suffix
adding more version-related variables
patch -> revision
Merge pull request #590 from apavlenko:java_fixes