Fix the build issue related to Macports-installed libpng on Mac

Pull libpng to the code tree.