use -mwindows on mingw
silly lil' bugs: fix entity deletion and probably other things
add savemap