REFACTOR eeprom and rtc: remove superfluous includes and change ifdef switches