Add Process::GetPID and make it work on Unix and Windows.

Refs #6118