I needed to apply the attached changes to fix one error and remove over a dozen warnings. The kext is confirmed working on Mac OS 10.5.
Madd the Sane
Huh, I'm surprised that this hasn't been added. Although you missed a tiny little thing (the header), it seems to be good.