Show real number of frames rendered in the fps widget.
Register system_end() with atexit().
Improve tile calculation from mouse positions when using z.