Make zap() work with non-gcc C++ compilers.