Restructure as a static library.