Fixed issue #3 by adding unistd.h as include