Modify for Libraries change

Becuase LiveData API Change
Replace bool to int because C not suppot bool
Strings contain UTF8, it will deal with higher layer(such as C# or Java
or Qt program)
Format codes and use C++ 0x features
remove locale..hpp