[NPS] Fixed NPS compilaton on OS X

OS X uses clang to compile the code, thus we have a bit different
warning system. Now the C++ code is being compiled with the G++ clang
compiler instead of GCC. Also fixed some other warnings including UTF-16
character usage.