[ios]#61 Tests work again on iOS after merge. Redefined  main to use SDL_Main, needed on iOS with SDL.

Small tweaks to debug API