Fixed warnings found by gcc