Removed Warnings

Replaced cast selectors with sel_getName(), updated deprecated
constants.