factor the runtime into architecture-dependent and -independent pieces. ditto for the OS dependence. SVN=124020