Common code changes, from OS X
Update documentation and build settings