Preliminary tiles support

Tile support working with --no-sao -p 1

It's not enabled by default, since it's not working correctly yet, and not thoroughly tested. You'll have to add -DUSE_TILES=1 to build it.