some test cleanups
move portable util code to common
move tests for utils to common code
netbsd procfs support