Update bpgdec.c

Fix broken PPM output files in Windows.