Fix syntax errors with missing header include and curly braces.