Changes to build with more recent Boost libraries (tested against 1.55.0) and some smaller miscellaneous changes.