Remove deprecated throw declarations
Remove -fvisibility=hidden

Causes linker warnings on iOS because the default settings in Xcode are
different.
Add -fstrict-aliasing flag to match Xcode defaults
Add -fvisibility=hidden to release configuration

This flag is used by default in the Xcode Release configuration; avoid
linker warnings/errors.
Remove invalid check for EOF
Adapt Release configuration flags to Xcode settings