Add -Wall to Xcode build
Fix warnings about array subscript in builtin_printf.cpp
Fix some warnings exposed by -Wall