Add malloc stub and wcwidth function