copied from inspect source tree, and adapted to use spthread functions instead of pthread
removed executable permission from a source file
removed size issues that cause warnings from the clang/llvm compiler
added code to assert that execution reaches the end of main() successfully.