fixed compilation errors on Solaris when -DLUA_USE_TRACE_LOGS is enabled.