change posix_getpid() to getmypid() call for Windows users :-(