Fix for missing unistd.h required by close()