EMI: Clamp sprites, repeat other textures.

This seems to work for me. I haven't played through much of the game with this patch, but problematic scenes seem to be okay now:
1. The intro has no lines
2. The Dainty has no lines at the dock on Lucre island
3. The raft is rendered with the correct texture
4. The lava is rendered with the correct texture

I have only compiled/tested on the opengl engine, but the code should be fine for the others.