Make mapgen factory setup more elegant, add mapgen_v6.h
Fix compile under MingW
Slightly improved version of mystrtok_r
Merge pull request #441 from kwolekr/mapgen_factories

Make mapgen factory setup more elegant, add mapgen_v6.h
Merge pull request #442 from kwolekr/mingw_compile_fix

Fix compile under MingW