added port.c to the iOS project