Maybe lyx::char_type is not wchar_t because you forgot to define HAVE_WCHAR_T? Or SIZEOF_WCHAR_T is not 4. Did you double check?
Well, I was bitten by the separation of config.h... HAVE_WCHAR_T is defined only in boost/config.h, not in other config files. A patch that fixes the crash will be applied soon to fix this problem. Thanks. Bo