ds1307 sketch will not compile in arduino 1.0

i have been trying to figure out why i get these errors with this sketch i would like to use the newer ide instead of the old one this works in but i get this in the error code window In file included from basic_light_timer.pde:3:
C:\Program Files (x86)\Arduino\libraries\DS1307/DS1307.h:47: error: 'boolean' has not been declared
C:\Program Files (x86)\Arduino\libraries\DS1307/DS1307.h:48: error: 'boolean' has not been declared
C:\Program Files (x86)\Arduino\libraries\DS1307/DS1307.h:55: error: 'byte' does not name a type

#include <WProgram.h>
#include <Wire.h>
#include <DS1307.h>

void setup()
{
Serial.begin(9600);
pinMode(13, OUTPUT);
pinMode(9,OUTPUT);
RTC.stop();
RTC.set(DS1307_SEC,10); //set the seconds
RTC.set(DS1307_MIN,27); //set the minutes
RTC.set(DS1307_HR,10); //set the hours
RTC.set(DS1307_DOW,1); //set the day of the week
RTC.set(DS1307_DATE,10); //set the date
RTC.set(DS1307_MTH,11); //set the month
RTC.set(DS1307_YR,13); //set the year
RTC.start();
}

void loop()
{
Serial.print(RTC.get(DS1307_HR,true)); //read the hour and also update all the values by pushing in true
Serial.print(":");
Serial.print(RTC.get(DS1307_MIN,false));//read minutes without update (false)
Serial.print(":");
Serial.print(RTC.get(DS1307_SEC,false));//read seconds
Serial.print(" "); // some space for a more happy life
Serial.print(RTC.get(DS1307_DATE,false));//read date
Serial.print("/");
Serial.print(RTC.get(DS1307_MTH,false));//read month
Serial.print("/");
Serial.print(RTC.get(DS1307_YR,false)); //read year
Serial.println();

delay(1000);

if (RTC.get(DS1307_HR, false) == 10 &&
RTC.get(DS1307_MIN, false) == 28 &&
RTC.get(DS1307_SEC, false) == 00){
digitalWrite (13, HIGH);
digitalWrite (9, HIGH);
}
if (RTC.get(DS1307_HR, false) == 23 &&
RTC.get(DS1307_MIN, false) == 00 &&
RTC.get(DS1307_SEC, false) == 00){
digitalWrite (13, LOW);
digitalWrite (9, LOW);
}

}

If "boolean" and "byte" are not defined, then you have some kind of basic problem with the definition of those types. It isn't going to be because of your specific library.

Including wprogram.h might be your problem. Isn't this replaced with Arduino.h ? I seem to recall having this problem about 2 years ago.

boolean is not C keyword , hence DS1307.h must have a definition of it and it is not there in the "new" version.
Check the old DS1307.h