Make project compilable using SDL2.


Former-commit-id: aa854223058827d9bd8f75ae1dfe52093a40cee2