Move some engine function declarations out of SPTLib.