Feature build improvements

Here's a rollup of three commits working on the build system, shell/daemon flags, and a lone erroring-requirement for Threads on CentOS.