Link to libpng in a version-agnostic way.