issue #2771:  fix some compile error.