Use pkg-config again, but just say -lpng if it doesn't work.