update Portability.h to allow iOS builds