Restored tracelib to use unique_ptr. Static issue persists, still digging