Android locale support, unfinished
Fixed compilation