Adding CMake options for C++11 mode and Unicode mode.
Fixing unicode issues in error handling and making unit test build in unicode mode.