use static library for XS
libs come last