fix some compile errors in gcc(but cannot run)