Fix C++ constructor/destructor tests when run on ARM