fix warning
fix warning
fix warning about comparing signed and unsigned
fix compilation on gcc 4.2 using boost
fix compilation on gcc 4.2