Add fix to build engine.h/cpp under macosx

This is a fix to build the Engine class under MacOSX 10.9.