Remove unnecessary typedef and script.h include