Fix error checking logic and define typo in clock_rtc
Add rtc to Makefile
Merge pull request #33 from hadleyrich/master

Fix up clock_rtc and add rtc.o to Makefile