Fix implementation of steady_count on Windows and Mac.