SDL2 pseudo-forked from http://www.libsdl.org/hg.php