fix to support old boost versions