[common] use packed attribute if available

- medium priority