Enable and use C++11. Main now uses unique_ptr's instead of manual
memory management and is now exception safe.
fixes can't resize window or use keyboard in windowed mode