Use getmypid() if POSIX function isn't available
Merge pull request #7 from darenc/develop

Use getmypid() if POSIX function isn't available