It seems that ```getpid``` is not portable too. MSDN says that this function is deprecated and recommend to use ```_getpid```. Original vim define it in os_win32.h as ```GetCurrentProcessId```.