compile realtime clock into library