Added missing headers (implicit declaration of function).