Split the C++ version into a binary with library

Also, update the RPM spec. The deb build rules may still need updated.
I guess one of your scripts changed this, because I don't remember touching it?