Add missing header.
Add missing function definitions.