If you have trouble building, clobber and delete any obj file existing in mozilla/modules/libimg/pngcom directory.