fixed compiler warnings with Xcode 5.1