Ensure RPM builds are "release" grade.

Also clean up SConscript, and fix a bug with strdup that optimized builds exposed.