Changed compile script to generate compatible jar and class versions