make compilation of pnm.c optional