Fixed some build issues.  Tidied up BoostThreadEngine.