Compiling fix

Fix compiling error in log_trace and msh.