update code in order to compile on Linux with SDL and the current last version of SFML