Add const qualifier to various SDL2 functions.

Apparently, cython now supports const.
Fix bug when removing timer.
Support user events.