Change these #ifdef 0 to #ifdef DEBUG
Adds missing __attribute__((packed)), thanks to phantom-one