API: don't use 'template' as variable name

'template' is a reserved keywork in C++, so including uv.h into a C++
file would fail to compile.