A bundle of fix for glibc-small

After all these fix, glibc-small for debug, production and profiling
could build successfully.

Signed-off-by: Kai Kang <kai.kang@windriver.com>