Uage of JCompatibility

I've changed for use JCompatibility for check compatibility with joomla version in 3rd extensions.