Fix syntax errors in #ifdef.