Update for Arduino 1.0 compatability: conditionally import either WProgram.h or Arduino.h.