Allow compilation against directory < 1.2 also.