fix to interval-based sun updating; build error fix