Use unistd module from gnulib to improve portability.