configure: Add a pkg-config check for libpng.