mysql.inc.php has been replaced with mysqli.inc.php in UBB.threads 7.7. It seems the problem is that /install/UPGRADE_CHANGES.txt has still references to mysql.inc.php in it.

You find in attachment an updated UPGRADE_CHANGES.txt where all NEW/CHANGED references to mysql.inc.php has been removed. This should fix the problem.