commit styleStats-v5.patch + small change to make unit tests work

git-svn-id: http://svn.mkgmap.org.uk/mkgmap/trunk@3356 25d90789-57f7-4ee0-8453-03a3dfeeeb22