trace/simple: Fix warning and wrong trace file name for MinGW