Initial work on adding new SDL hooks to support Stonesense