fix building for 3.0.x