added widechar support to cmake