Fixed compile errors and warnings resulting from the Xcode 5.1 update