Here were the changes I had to add to get this to compile on Arch Linux.

In src/replace.cpp, add the include <cstdio>.

In src/Makefile.am, comment out

pixmapdir = /usr/share/pixmaps
applicationsdir = /usr/share/applications

and replace with

pixmapdir = ${prefix}/share/pixmaps
applicationsdir = ${prefix}/share/applications

Also in src/Makefile.am, replace all instances of "-lcsound64" with just "-lcsound".