Minimal changes needed to un-break package version of sprofile

Until #2597 gets resolved, at least these changes are needed for the
0.2 branch of the package to work.