Move define headers and serial libs to a use a common set.
Add code for type 2 (AVRs without a bootloader section) to test
bootloader pin and jump to the bootloader address.
Change optimization level to 1 to avoid faulty code generation.