Fix for ROOT-6083 (ROOT segfault due to incompatible libpng)