Warnings fixes

See commits for detailed comments. This is based off of the Warning-Unused PR. With this pull, we are down to only four total warnings across all os'es (all in third-party code). Woohoo, almost there!