Compilation fix for boost 1.52 and up