some code cleanup and bug fixes

mingw support

fix include

(0) -30 -10 -3 +3 +10 +30 +100 +300 tip

mercurial