Fix problem with compilations, no correct type of constructor and destructor