Minor build system cleanup
Fix new-theory script for new, flattened build system.
add loop cache
Merge branch 'master' of github.com:tiliang/CVC4