contrib: Patch libpng to make it build with automake 1.12 and 1.11 again
tools: Check for libtool 2.4

This is required when building libpng.