Include unistd.h to provide namespace for getlogin.