workaround for https://github.com/torch/sdl2-ffi/issues/1