Move some engine functions declarations out of SPTLib.