improved the exception message when failing on instantiating a constructor or calling a method in the compatibility class
adding a logging message to know when cdh3 or cdh4 is detected by the compatibility class
fixed a compilation error with the previous commit