Adding unistd.h header file in the compat.h for non-Windows platforms