some linux mods; be careful about int vs long (for alpha)