Enerlib with Arduino 1.0

Not sure what the difference between wiring.h and Wprogram.h is, but this did the trick:

#if defined(ARDUINO) && ARDUINO >= 100
  #include <arduino.h>
#else
  #include <wiring.h>
#endif

Thanks