Some tweaks to make SSR compile with Clang.