tools.cpp: replaced rawmemchr with memchr (MinGW)
Rework Makefile, move iconv out of MDX.h