Waveram is really a c++ file, so renaming it to cpp

Hi,

Here's another small fix. As far as I can see waveram.c is really a c++ file, so I changed it everywhere i saw it was used.