Compile local lib (*.so) and fix some warning.