sim/common: Fix warnings: "warning: implicit declaration of function..."