Laboriously figure out how to get cmake to build static libs