Adapted TextObjet extension declaration to be compatible with emscripten