Fix gcc warnings when compiling on linux

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>