Merge pull request #362 from BernardXiong/master

[C++] fix GCC compiling issue.
Merge pull request #363 from BernardXiong/master

[Sensor] code cleanup
[DeviceDriver] Remove i2c_core_lock.