Fixing compilation errors

BTW: `NSDate` doesn’t appear to have a “-timestamp” method. And there are several other warnings in Xcode 5.