Added a way to compile SPTM as a static library.