getpid

when building getpid is undeclared, this fixed it.