getpid
Add a simple `getpid` emulation function which just returns a fixed value, for applications that just use it for logging.