Fix a bug in writing message numbers into CLASS.DEF lump