Build fix on boost 1.46, Ubuntu 12.04

Build fix on boost 1.46, Ubuntu 12.04.
Code from Debian package.