Fix for mega as target device.

The conditional include of HardwareSerial.cpp allows targeting the mega
board and the leonardo without code changes.