unistd.h must be explicitly included on some platforms to have access to for example environ. This closes #313