Add RPM building support

RPM packaging needed a lot of work.  This makes RPMs build correctly.

Fixes #4