Use the most recent libpng signature check for tilegen

The png_check_sig() function is obsoleted for png_sig_cmp in recent
libpng.