Fix some compiler warnings for new Xcode