stm: Only define __packed if not already defined.

Addresses issue #299.