minor tweaks for latest xcode

It wasn't building on the latest XCode so I made some minor changes to fix that.