fix compile error when debug is enabled for IRMP

replaces #375