SFML Bug Fixes

Fixed a bunch of bugs in the code from Josh, Cheeseboy, and the SFML team and for instance audio crackling.