Sorry about that, i'm running Opera and I couldn't get them to paste.
The errors were saying that protocol.h didn't exist in the directory the .c file was pointing to, I edited the file with the correct location and it worked fine.
Thanks for you help