glibc wants -lpthread at the end glibc -lpthread also needs -Wl,--whole-archive but that's a glibc bug
fix breakage due to the .exe change, add error flags to config.mak.def
don't use _LARGE_FILE in the default config
Makefile fix: define RANLIB in makefile, more robust DIRS definition
move config.mak to config.mak.def (so user can freely change it)