Made changes that enables compiling with earlier versions of boost.  Tested against boost 1.41