a real build process without dylibs for libpng