Fixed warnings under XCode 4.6

Fixed some compiler warnings with the new XCode