berkelium-cpp: fix for building without BERKELIUM_TRACE_ALL_OBJECTS