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

Refs #6118
Fix coding-style and use the "String"-class.

Refs #6118