Moved most of the variables to targets in the main src.
Made libraries in repo export targets.
Refactor STATIC flags a little and add more.
This commit definitely breaks a lot of things like tests
but the main game builds at least with MSVC.
* localename library is now used to determine the actual locale used
* added patched version of FindGettext.cmake to fix
installation path of translation files