port to SDL2

Signed-off-by: Ilya Gradina <ilya.gradina@gmail.com>
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>