Improved SDL2 timer, threading prototypes and etc.