fix missing functions preventing stem3 from compiling.