lots of changes

- add Xcode project
- fix warnings
- formatting
- distcheck now mostly works (except for a few files left in build dir
at end)
- configury
should have gone in previous commit