fix for how interrupt flags are set
fixes for gcc structure packing and related pragmas