Add scripted hack for cross version compilation and CI