Programs compiles but there is till a seg fault when copying a std::set