runtime: moved inline functions to a separate header.