cleanup global defines for bootloader