Fixed compilation issues in #3 and put the packed attribute behind a macro