Access violation in TextOutput was caused by sdl_ttf functions being thread unsafe. Added mutex to TextOutput class, lock for ttf calls