fix calculation of avgCharWidth.

It now ignores glyphs with zero width as required by the OS/2 table spec
fix conversion of none ASCII chars
Change build folders in xcode config files

The put the build results in the Xcode DerivedData folders.
Merge pull request #13 from schriftgestalt/upstream

Fix two small issues and Xcode config