Fix analytics build error in release mode.