64-bit compile fixes.
Adapt to Boost API changes.