Allow target specific optimization levels/debug flags

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