Gearth fix

@DonLakeFlyer: Don't merge yet - this is your bootloader fix attempt plus fixed Google Earth building in the debug build. We can merge once your changes are in.