Fixed castle’s assert macros, and their related warnings.