core: print warning message if number of #!if(n)def is different than of #!endif

- should help discovering if a conditional block is left unclosed