added include globals.h to catalua.cpp