Build cfitsio shared library