Move some common linux stuff into linuxutil

Signed-off-by: Chris Lalancette <clalancette@gmail.com>