add libpng dep, remove patch, stricter sanity check, no version hardcoding