Corrections on clang warnings

Fixed some warnings on gcc.