Check the paths to the include headers and libraries you compile and link your application with. It is not normal with the ICMP. I quickly did the test below with MQX 4.0.1 and CW 10.4 and twrmcf52259:
rtcs shell application
default user_config.h (ICMP is enabled):
CW 10.4 Debug:
00000000 00000000 00000400 .vectors vectorrom
00000400 00000400 00000018 .cfmprotect cfmprotrom
00000420 00000420 0005F508 .main_application rom
20000000 0005F928 000001C0 .main_application_data ram
200001C0 200001C0 00000468 .main_application_bss ram
modified user_config.h (ICMP disabled):
CW 10.4 Debug:
00000000 00000000 00000400 .vectors vectorrom
00000400 00000400 00000018 .cfmprotect cfmprotrom
00000420 00000420 000599A4 .main_application rom
20000000 00059DC4 00000188 .main_application_data ram
20000188 20000188 00000464 .main_application_bss ram
seems about 20 KB less by not including the ICMP.