Adding GCC_WARN_SIGN_COMPARE to warning flags, fixing several warnings