create and use static library
Merge commit '0c6165b96cbd90993c1447dc1cf460f1511a62d9'