Fixed complaits from xcode5 compiler