Warnings

Several minor warning fixes for clang debug mode and Xcode