Call C++ constructors and destructors.

However, this only works with Apple GCC and Clang, but does not hurt
if unsupported. Therefore, no check for compiler support is needed.