Fix build problem in release v2.2.