fix compiler warning about undeclared function by adding include file