All we need to do is add the following to the file which is producing the error. It includes the classes we need.
I'm currently working on a job to upgrade a site built in Joomla 1.5 to Joomla 1.6. I have come across a lot of issues along the way and this will be a running blog post which will be updated when I solve certain problems. Joomla 1.5 to 1.6 template upgrade tutorial is a pretty good starting point. If anything is incorrect, let me know and i'll correct it.