Fix some bugs about connection to GCC