I'm not sure now, but did you included that header file?
And why would you make whole patch from the scratch? If you just want to use another patch, download it from the GC servers.
And maybe you need to encrypt file - isn't it?
Offtop:
#1300th post, lol. Feel just like (essence) crit orns.
So much time here and I'm still not very helpful