Some fixes for obj-c compile errors. Not sure of the plugin result being done that way for now.