Failed to link -lpng while make reftest is fixed.