Added some inclusions of string.h where necessary.