Set USE_CUSTOM_LIBFFI when compiling for simulator