compile fix in shared_count