Compilling with gcc gives another error. Replaced direct.h by unistd.h (not sure if it will work)