DS1307 RTC adjust drift automatically

You have to include the library in your project.
How are you compiling? With the Arduino IDE?