Solve 99% of warnings

Except the one related to setjmp since I have to refactor that piece of
code