[SDL2] CMake builds do not enable IME correctly on Linux

Bugzilla and patch here: https://bugzilla.libsdl.org/show_bug.cgi?id=4354
No activity on the bug since reported so pinging here.