rtc, fixes for Mavericks