Fix compile errors, code review feedback, and add basic libc test suite.
*** 93,103 **** --- 93,105 ---- $add amd64 $endif SYMBOL_VERSION ILLUMOS_0.8 { # POSIX 2008 newlocale and friends protected: + __global_locale; __mb_cur_max; + __mb_cur_max_l; btowc_l; duplocale; fgetwc_l; freelocale; getwc_l;