Change the -1 to 0. I think there is one more instance where you need to do that.
As for the other tutorial, it's for the original source code and not for 4SDL. So there are probably some wrong definitions or something. I don't know enough of the code to know what to change, perhaps Tricob can help.