libroot: Make stpncpy compatible with GCC2.
libroot: Add stpncpy. Imported from musl. It is in POSIX.1-2017.