Use getpid instead of GetCurrentProcessId as the latter calls into io-layer which is not initialzed at this point.
Merge pull request #273 from joncham/bug-getpid

Use getpid instead of GetCurrentProcessId as the latter calls into io-la...