fix the compiling error for integrated version