tweaks to get XS to build under linux