Fixed a typo in semantic_memory.cpp and some missing header declarations
in semantic_memory.h. The scons build works on my machine, at least.