Static link to all dependent libraries.

Besides libc and libstdc++, Usually an executable generated by GCC will
depend on other libs, such as libm which includes some math function, and
the Linux loader stub functions in linux-vsdo.so.1 and libc.so.6. Add
-static flag will force GCC link all default libs as static.