Try build using a static library.