SFML and MinGW fixes and more

These are mostly just fixes for various problems I have encountered and fixed so far with GWEN.