issue #2103 modify some compile setup