Fix (cli) build on MXE

Needed for http://sourceforge.net/apps/trac/cppcheck/ticket/4932