fix for mozilla/rust/pull/14364

Handily closes AngryLawyer/rust-sdl2/issues/117, with props to @jcmoyer for pointing me in the right direction!