locale: Fix compile error on Windows