add kc namespace to getpid call to avoid ambiguitiy related compile error on some compilers