readded unistd.h for linux, to avoid warning