Bug fixes.

Fixed various bugs:

- QUICKFLI crashed on start up.
- cset_colors was implemented incorrectly, causing garbage when palettes changed between frames.
- memcpy shouldn't be used where src/dst memory areas overlap.
- saving the buffer under the mouse will read outside of the screen buffer if the mouse is on the edge of the screen.