Merge pull request #4 from brettle/master

RPM and shared lib improvements
Changed to build shared libs by default. You can still use -DBUILD_SHARED_LIBS=OFF to disable.