Warning elimination

I'm getting rid of warnings. Mostly it's casting to "int," but in two cases I've turned off warnings inline in the code -- one to run off the ARC retain cycle, which doesn't need to be worried about; the other to turn off the deprecation warning on the device enumeration calls. In the latter case I've included a //TODO: comment so that it won't get lost when converted to non-deprecated functions.