Fixed compile error in CsvWriter