fix header (#237) and avoid warning
fix compilation
fix compilation with gcc47