Add tests dependency on static lib when FLINT_SHARED=0
More long -> slong changes