Fixed compilation errors

Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>