Fixed compiler warnings under XCode 4.6