Fix locale to also work when compiled