Include config.h directly if possible (to avoid obligating the includer to do so). Revert the condition to work better if HAVE_CONFIG_H is not defined - unistd.h is included then.