Gcc extra warnings

These patches fix some gcc warnings that appear with -Wextra.

Since i fixed the warnings emitted by the headers included in my project, this is not exhaustive.