Fix for UNIX-dependency

While debugging MongoYii, i found the posix_getpid() call, which didn't work for Windows. I replaced the function call with php core functionality.