Fix Xcode 5-introduced "Undeclared selector" warning, and a regression. fixes #19