Allow target specific optimization levels/debug flags

Changing the optimization level from -O1 to something else breaks the
SoftwareSerial library. This patch allow to set optimization flags on a
per target basis.