[ios] Fix window userdata
[ios] Add main() to libglwt

The intrusive interface is the only one that makes sense on iOS,
so it is assumed.