Minor fix to compile functions in rtc.h