add unistd.h for close (needed in trusty/i386)