issue #2103  modify some build script