unmaintained/lshw: fix build

s/__\(u*int\)/\1/g
add headers
replace sysconf(_SC_LONG_BITS) with 8*sizeof(long)
make basename() usage conform to POSIX
testing/lshw: moved back to testing