or create a file 'WProgram.h' in the 1.0 core directory 'D:\PathToArduino\hardware\arduino\cores\arduino'
and put inside it
#include "Arduino.h"
and just for gcc compiler optimisation you could also put
#ifndef HEADER_WPROGRAM
#define HEADER_WPROGRAM
#include "Arduino.h"
#endif
this will fix most libraries.