Extracting as root with tar defaults to preserving permissions.  I suggest excluding dev from extraction; creating the subdirectory is fine but not necessary either.