native/rtc: improve implementation

* add error checking / warnings
* implement parts of alarm functionality
* clean up