Fixe some compilation errors with clang

When compiling onion with clang, I have some errors here, so I juste added some fixing which don't modify the core (I think)

My config when I compile onion:
OS: Arch Linux 64bits
clang version 3.3 (tags/RELEASE_33/final)