Fixed compiler warnings in Mac Xcode builds.