fix packed attribute warnings for compilers that cannot turn them off