Fixed syntax errors found by gcc