Сleaned and modernized source code of Heretic. Uses SDL2 as a platform abstraction layer.