Fix "multiple definition" error in utils.hpp.
Fix memory leak.
Make use of my patches to KIM.