changes for compile to ios

Changes to headers to and c files to compile in IOS