Fixed warnings and errors after releasing XCode 5.1