Static library

#845