In Penknife, converted lots of PkRuntime methods to global functions now that they don't use `this`.