Fix compile warnings with latest Xcode (4.6.1)

This pull request silences two warnings.