Fix wchar encoding issue, Add several more core functions, use LDC as a default compiler