Fixed portability warnings; output: csv to pdf