Allow to build with recent boost versions

Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>