Allow dynamic libpng

Not all systems have a static libpng, and when packaging Rust for a distro, we want to link to whatever is already present in the system, despite Cargo's current lack of capability on that front.