Avoid errors redefining getpid() for MingW
We use a macro for getpid but MingW define a getpid function
which can clash with our definition. Include unistd.h header
earlier to avoid the clash later.
Signed-off-by: Frediano Ziglio <freddy77@gmail.com>