Function gimp_get_default_unit ported for Windows using standard GetLocaleInfo() function (from windows.h).