Declare the set_trace_buffer_size functions and fix warning of mixed declarations and code