Since you are not actually implementing the tone and noTone functions with the change you made, the tone and noTone functions must actually be defined somewhere (they are). So, you should find the header file in which they are defined, and include that, not modify WProgram.h.
Sanguino doesn't declare tone or noTone. His solution is actually the right one.
there must also be a declaration for them, somewhere.