Fix warnings

Clean up project settings and code to catch and fix undeclared selector and unused function warnings