minor cleanup, fixed core dump on null string

cleaned up to compile on gcc 4.4.4
fixed blown null pointer in KSTAT_DATA_STRING handling
fixed blown pointer in data_named()
Merge pull request #2 from dey-sys/master

fixed blown pointers that cause core dumps, compiles on gcc 4.4.4 properly