fixed compilation errors on SFML, Qt and test