CA-129648 and CA-124005

CA-129648: Handle deprecation warnings causing XenRT test failures. 
CA-124005: Updated java README. Do a test compilation of the samples when building.