Fixed selector leak & undeclared selector warnings, as suggested in these SO answers:

http://stackoverflow.com/a/20058585/743957
http://stackoverflow.com/a/18920098/743957
Merge pull request #169 from BillinghamJ/warning-fixes

Fixed selector leak & undeclared selector warnings