properly handle elfclass
fix output when 32bit