Fixed the broken DirectX build and fixed text rendering