Fixed compile errors found with Xcode 6.