Fixed the signature of a few functions. Don't use wcs* functions, use *W (from unicode.h) instead.
- Many fixes and a load of new functions.