fixed xcode 6.1 compile errors..

Now works with xcode 6.1...