version-script: add GCC/Clang optimization level
project: don't treat warnings as errors
getversion.sh: Use PlistBuddy instead of agvtool to get the version for
release builds. agvtool does not work if there are mulitple projects in the
Vienna directory.