Move GetLangValuesMapping out of MiscScreens.cpp so it can be used globally.
Merge pull request #3923 from thedax/fixBuilds

Fix headless.