Use libpng-config if available

Use alt_exec to pass libpng-config with ldflags argument.
Also duplicated versioning ability as freetype class performs it. This allows for pretty config summary.