Fixed libpng version check.