copy constructor for class Compil