fix for code. predates learning to -Wall -Werror, somehow used to build without including necessary headers..