Various minor tweaks and fixes

Even though I needed to remove the '-mt' from -lboost_thread-mt and -lboost_regex-mt, whether or not you need to do this depends on how you compile boost.

"# --layout=tagged will add the "-mt" suffix for multithreaded libraries
 # and installs includes in /usr/include/boost.
 # --layout=system no longer adds the -mt suffix for multi-threaded libs."

Finding which you need can be done with autoconf. I don't yet know if it can be done with a standard makefile.