Fixed syntax errors unearthed by clang