[tilegx] Continue to fix various linking errors.

  By this commit, we pass linking, can generate binary.
Most of the interface are implemented by just print
"UNIMPLEMENTED" then exit, we need to fix them one by one
to let a minial "hello world" work.