Move mono_trace to header file