Fixed missing include <sys/types.h> for type off_t (gcc 4.1).