Reduce compiler warnings by adding appropriate casts.

Proper string formatting for size_t, NSInteger, etc.
Added implicit (id)s, etc.
Bumped target to 10.7 because XIB labels require it apparently (according to the warnings).