Declaring the global variable _CRT_fmode is a documented hack. What an ugly platform!
Use the plugin instead of the glue code in normalize.c. This is used wrapped inside a "autoconv" filter, to enable normalization for all input file formats.