Fix the remaining warnings on Solaris

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