fixing compiler errors that resulted from building with new Xcode/OS