updated code and makefile slightly to compile against latest houdini