Various fixes

For RTC and SPI.