Fixed compiler warnings from XCode 6.1.1