Avoids differences in widths of wchar_t, hopefully addressing issue #2284
This change moves source files into a src/ directory, and puts object files into an obj/ directory. The Makefile and xcode project are updated accordingly. Fixes #1866